import datetime

def htmlDay(day, events):
    """
    day- a tuple of the form (date e.g. 6/2, day of the week)
    events - a list of tuples of the form (timespan, name)
    """
     dayString = "<tr><td>%s</td><td>%s</td></tr>" % (day[0], day[1])
    for event in events:
        dayString.append("<tr><td>%s</td><td>%s</td></tr>" % (event[0], event[1]))
    return dayString
